//package com.bitcola.chainserver.rest;
//
//import com.bitcola.chainserver.server.eth.EthChainServer;
//import com.bitcola.security.common.msg.AppResponse;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.io.IOException;
//import java.util.concurrent.ExecutorService;
//import java.util.concurrent.Executors;
//
///**
// * @author zkq
// * @create 2019-04-12 12:24
// **/
//@RestController
//@RequestMapping("chain")
//public class ChainController {
//
//    @Autowired
//    EthChainServer ethChainServer;
//    public static ExecutorService reScanThread = Executors.newFixedThreadPool(40);
//
//
//    @RequestMapping("transfer")
//    public AppResponse transfer(String module) throws Exception{
//        if ( module.equals("ETH")){
//            ethChainServer.transfer();
//        }
//        return AppResponse.ok();
//    }
//    @RequestMapping("reScan")
//    public   AppResponse reScan(long  index,int end) throws IOException {
//
//        ethChainServer.scanBlock(index,reScanThread);
//
//        return AppResponse.ok();
//
//    }
//
//
//
//
//
//}
